<h1>User View</h1>
<br/>

<form action="<?php echo URL; ?>user/createUser" method="post" id="userInsert">
	<label>Login</label><input type="text" name="login" /><Br/>
	<label>Password</label><input type="password" name="password" /><Br/>
	<label>Role</label>
	<select name="role">
		<option value="owner">Owner</option>
		<option value="user">User</option>
	</select><br/>
	<label></label><input type="submit" value="submit">

</form>
<hr/>
<table>
<?php 
		foreach ($this->userList  as $key => $value) {
			echo "<tr>";
			echo "<td>" . $value['id'] .  "</td>";
			echo "<td>" . $value['login'] . "</td>";
			echo "<td>" . $value['role'] . "</td>";
			echo "<td><a href='". URL ."user/edit/". $value['id'] ."'>Edit</a> <a href='". URL ."user/deleteUser/". $value['id'] ."'>Delete</a></td>";
			echo "<tr>";
		}

//print_r($this->userList);
	
?>
</table>